//
//  CTEssenceViewController.m
//  百思不得姐
//
//  Created by leo on 2017/5/19.
//  Copyright © 2017年 mine.com. All rights reserved.
//

#import "CTEssenceViewController.h"
#import "UIColor+Hex.h"
#import "UIBarButtonItem+CTItem.h"
@interface CTEssenceViewController ()

@end

@implementation CTEssenceViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = CTRandomColor;
    [self setNavigationBarContent];
}
#pragma mark - 设置导航条内容
- (void)setNavigationBarContent {
    self.navigationItem.titleView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"MainTitle"]];
    self.navigationItem.leftBarButtonItem = [UIBarButtonItem itemWithNormalImage:[UIImage imageNamed:@"nav_item_game_icon"] highLightImage:[UIImage imageNamed:@"nav_item_game_click_icon"] target:self action:@selector(leftBtnClick:)];
    self.navigationItem.rightBarButtonItem  = [UIBarButtonItem itemWithNormalImage:[UIImage imageNamed:@"navigationButtonRandom"] highLightImage:[UIImage imageNamed:@"navigationButtonRandomClick"] target:self action:@selector(rightBtnClick:)];
   
}
- (void)leftBtnClick:(UIButton *)button {
    NSLog(@"点击了精华控制器左边的按钮");
}

- (void)rightBtnClick:(UIButton *)button{
    NSLog(@"点击了精华控制器右边的按钮");
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
